/**
 * Created by huiran on 2017/5/11.
 */
//
document.onscroll = function () {
    $('.deta-con6 li').each(function () {
        if ($(window).height() + $(document).scrollTop() >= ($(this).offset().top + 100)) {
            $(this).css('visibility','visible').addClass('animated zoomIn');
        }
    });
    $('.xiao-con1 li').each(function () {
        if ($(window).height() + $(document).scrollTop() >= ($(this).offset().top + 150)) {
            $(this).css('visibility','visible').addClass('animated zoomIn');
           $(this).hover(function () {
               $(this).children('div.xiao-zhe').stop().animate({
                   opacity:0.6
               },500);
               $(this).children('div.xiao-wen').css('visibility','visible').addClass('animated slideInLeft');
           },function () {
               $('.xiao-zhe').stop().animate({
                   opacity:0
               },500);
               $('.xiao-wen').css('visibility','hidden').removeClass('animated slideInLeft');
           })
        }
    });
    $('.sj-teacher li').each(function () {
        if ($(window).height() + $(document).scrollTop() >= ($(this).offset().top + 150)){
            $(this).css('visibility','visible').addClass('animated zoomIn');
        }
    });
    $('.case-nei li').each(function () {
        if ($(window).height() + $(document).scrollTop() >= ($(this).offset().top + 150)){
            $(this).css('visibility','visible').addClass('animated zoomIn');
        }
    });


};